home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Found / FWString / Include / SLTxtRun.xih < prev    next >
Encoding:
Text File  |  1996-04-23  |  34.9 KB  |  1,258 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: SLTxtRun.xih.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxih.dll: 2.33
  8.  */
  9.  
  10. /*
  11.  * 
  12.  * 
  13.  *     File:        SLTxtRun.idl
  14.  * 
  15.  *     Contains:    Interface for OTextRunReader and OTextRunWriter classes
  16.  * 
  17.  *     Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  18.  * 
  19.  * 
  20.  */
  21.  
  22.  
  23. #ifndef SOM_FW_OTextRunReader_xih
  24. #define SOM_FW_OTextRunReader_xih
  25.  
  26. #include <somcls.xh>
  27. #include <somcm.xh>
  28.  
  29. /*
  30.  * Passthru lines: File: "C.xih", "before"
  31.  */
  32.  
  33.  
  34. #ifndef SOM_FW_OTextRunReader_xh
  35. #include <SLTxtRun.xh>
  36. #endif
  37.  
  38. /*
  39.  * Set the scope of methods functions
  40.  */
  41. #ifndef SOM_Scope
  42. #define SOM_Scope extern "C"
  43. #endif
  44.  
  45. #define FW_OTextRunReader_MaxNoMethods 4
  46.  
  47. /*
  48.  * -- Instance Data
  49.  */
  50. typedef void FW_OTextRunReaderData;
  51.  
  52. /*
  53.  * Trace/Debug macro
  54.  */
  55. #ifndef FW_OTextRunReaderMethodDebug
  56. #define FW_OTextRunReaderMethodDebug(c,m) SOMMethodDebug(c,m)
  57. #endif
  58.  
  59. /*
  60.  * -- Method Macros for use in Method Procedures
  61.  */
  62. #ifdef METHOD_MACROS
  63.   #define _somInit somSelf->somInit
  64.   #define _somUninit somSelf->somUninit
  65.   #define _somDuplicateReference somSelf->somDuplicateReference
  66.   #define _somCompareReference somSelf->somCompareReference
  67.   #define _somRelease somSelf->somRelease
  68.   #define _somFree somSelf->somFree
  69.   #define _somCanDelete somSelf->somCanDelete
  70.   #define _somGetClass somSelf->somGetClass
  71.   #define _somGetClassName somSelf->somGetClassName
  72.   #define _somGetSize somSelf->somGetSize
  73.   #define _somIsA somSelf->somIsA
  74.   #define _somRespondsTo somSelf->somRespondsTo
  75.   #define _somIsInstanceOf somSelf->somIsInstanceOf
  76.   #define _somDispatch somSelf->somDispatch
  77.   #define _somClassDispatch somSelf->somClassDispatch
  78.   #define _somCastObj somSelf->somCastObj
  79.   #define _somResetObj somSelf->somResetObj
  80.   #define _somPrintSelf somSelf->somPrintSelf
  81.   #define _somDumpSelf somSelf->somDumpSelf
  82.   #define _somDumpSelfInt somSelf->somDumpSelfInt
  83.   #define _GetCurrentRun somSelf->GetCurrentRun
  84.   #define _NextRun somSelf->NextRun
  85.   #define _PreviousRun somSelf->PreviousRun
  86.   #define _GetTotalLength somSelf->GetTotalLength
  87. #endif
  88.  
  89.  
  90. /*
  91.  * Introduced methods
  92.  */
  93.  
  94. /* New Method: GetCurrentRun */
  95. SOM_Scope corbastring  SOMLINK FW_OTextRunReader__GetCurrentRun(FW_OTextRunReader *somSelf, Environment *ev,
  96.         FW_ByteCount* length,
  97.         FW_Locale* locale);
  98.  
  99. /* New Method: NextRun */
  100. SOM_Scope boolean  SOMLINK FW_OTextRunReader__NextRun(FW_OTextRunReader *somSelf, Environment *ev);
  101.  
  102. /* New Method: PreviousRun */
  103. SOM_Scope boolean  SOMLINK FW_OTextRunReader__PreviousRun(FW_OTextRunReader *somSelf, Environment *ev);
  104.  
  105. /* New Method: GetTotalLength */
  106. SOM_Scope FW_ByteCount  SOMLINK FW_OTextRunReader__GetTotalLength(FW_OTextRunReader *somSelf, Environment *ev);
  107.  
  108. /*
  109.  * -- Primary Implementation File Support
  110.  */
  111. #if (defined(FW_OTextRunReader_Class_Source) || defined(SOM_Module_sltxtrun_Source))
  112.  
  113. /*
  114.  * -- The FW_OTextRunReader ClassData Structure
  115.  */
  116.  
  117. #if PRAGMA_IMPORT_SUPPORTED
  118. #pragma export list FW_OTextRunReaderClassData
  119. #endif
  120.  
  121.  
  122. /*
  123.  * -- The FW_OTextRunReader Class Ancestor Table
  124.  */
  125. static somClassDataStructure * SOMDLINK FW_OTextRunReaderClassAncestors [] = {
  126.     (somClassDataStructure*) & SOMObjectClassData,    /* parent */
  127. };
  128.  
  129.  
  130. static void FW_OTextRunReaderDLLD ( void ) { }
  131.  
  132.  
  133. /*
  134.  * -- The FW_OTextRunReader Static Class Info Master Table
  135.  */
  136. static somStaticClassInfo FW_OTextRunReaderSCI = {
  137.       70,    /* layout version */
  138.     (somClassDataStructure*)  & FW_OTextRunReaderClassData,    /* main token table */
  139.       0,    /* no override procs table */
  140.       FW_OTextRunReaderClassAncestors,    /* ancestor table */
  141.       FW_OTextRunReaderDLLD,    /* DLLdesignator */
  142.       0,    /* no special procs */
  143.       0,    /* rtci slot */
  144.       0,    /* count slot */
  145.       0,    /* dynamic ancestry */
  146.       0,    /* free */
  147.       0,    /* free */
  148.       0,    /* free */
  149.       0,    /* free */
  150.  
  151. /*
  152.  * -- The FW_OTextRunReader Counts Table
  153.  */
  154.     (somStaticClassCounts *)
  155.         "\x00\x00\x00\x01"    /* majorversion */
  156.         "\x00\x00\x00\x00"    /* minorversion */
  157.         "\x00\x00\x00\x01"    /* flags */
  158.             "\x00\x00"    /* type code alignment */
  159.             "\x00\x04"    /* classTokenCount */
  160.             "\x00\x01"    /* numDirectParents */
  161.             "\x00\x00"    /* numMetaClasses */
  162.             "\x00\x00"    /* numOverriddenAncestors */
  163.             "\x00\x00"    /* numMigratedMethods */
  164.             "\x00\x00"    /* numSelectedInherited */
  165.             "\x00\x00"    /* numUnused */
  166.             "\x00\x00"    /* free */
  167.             "\x00\x00"    /* free */
  168.             "\x00\x00"    /* free */
  169.             "\x00"    /* free */
  170.                 ,
  171.  
  172.     {
  173.       "FW_OTextRunReader",    /* the class name */
  174.       0, /* no class instance data */
  175.  
  176. /*
  177.  * -- The FW_OTextRunReader Parent Versions Table
  178.  */
  179.     (somParentVersions *)
  180.         "\x00\x00\x00\x46"    /* majorversion */
  181.         "\x00\x00\x00\x01"    /* minorversion */
  182.                 ,
  183.  
  184.  
  185. /*
  186.  * -- The FW_OTextRunReader Token Slot Usage Table
  187.  */
  188.     (somSlotUsage *)
  189.         "\x00",
  190.  
  191.  
  192. /*
  193.  * -- The FW_OTextRunReader Method Signature Info
  194.  */
  195.     (somSignatureInfo *)
  196.         "\x04\x0c"    /* GetCurrentRun */
  197.          "\x02\x00"    /* NextRun */
  198.          "\x02\x00"    /* PreviousRun */
  199.          "\x02\x05"    /* GetTotalLength */
  200.              ,
  201.  
  202.  
  203. /*
  204.  * -- The FW_OTextRunReader Class Method Names
  205.  */
  206.         "GetCurrentRun\0"
  207.         "NextRun\0"
  208.         "PreviousRun\0"
  209.         "GetTotalLength\0"
  210.             ,
  211.  
  212.       0,    /* no override data table */
  213.       0,    /* no migrated methods table */
  214.       0,    /* no selected inherited */
  215.       0,    /* unused */
  216.  
  217.       0,    /* free */
  218.       0,    /* free */
  219.       0,    /* free */
  220.       0,    /* free */
  221.     },
  222. };
  223.  
  224. /*
  225.  * -- The FW_OTextRunReader ClassData Structure
  226.  */
  227. struct FW_OTextRunReaderClassDataStructure SOMDLINK FW_OTextRunReaderClassData = {
  228.       0,            /* zero */
  229.     & FW_OTextRunReaderSCI,        /* SCI link */
  230.       0,            /* instanceDataToken */
  231.       0,            /* reserved */
  232.       0,            /* reserved */
  233.       0,            /* reserved */
  234.     (somMToken) FW_OTextRunReader__GetCurrentRun,    /* GetCurrentRun:method */
  235.     (somMToken) FW_OTextRunReader__NextRun,    /* NextRun:method */
  236.     (somMToken) FW_OTextRunReader__PreviousRun,    /* PreviousRun:method */
  237.     (somMToken) FW_OTextRunReader__GetTotalLength,    /* GetTotalLength:method */
  238. };
  239.  
  240.  
  241. /*
  242.  * Functions for attributes.
  243.  */
  244.  
  245. /*
  246.  * Macros for initializers/destructors
  247.  */
  248.  
  249. #endif /* Primary Implementation Support */
  250.  
  251. #endif       /* SOM_FW_OTextRunReader_xih */
  252.  
  253. #ifndef SOM_FW_OTextRunWriter_xih
  254. #define SOM_FW_OTextRunWriter_xih
  255.  
  256. #include <somcls.xh>
  257. #include <somcm.xh>
  258.  
  259. /*
  260.  * Passthru lines: File: "C.xih", "before"
  261.  */
  262.  
  263.  
  264. #ifndef SOM_FW_OTextRunWriter_xh
  265. #include <SLTxtRun.xh>
  266. #endif
  267.  
  268. /*
  269.  * Set the scope of methods functions
  270.  */
  271. #ifndef SOM_Scope
  272. #define SOM_Scope extern "C"
  273. #endif
  274.  
  275. #define FW_OTextRunWriter_MaxNoMethods 3
  276.  
  277. /*
  278.  * -- Instance Data
  279.  */
  280. typedef void FW_OTextRunWriterData;
  281.  
  282. /*
  283.  * Trace/Debug macro
  284.  */
  285. #ifndef FW_OTextRunWriterMethodDebug
  286. #define FW_OTextRunWriterMethodDebug(c,m) SOMMethodDebug(c,m)
  287. #endif
  288.  
  289. /*
  290.  * -- Method Macros for use in Method Procedures
  291.  */
  292. #ifdef METHOD_MACROS
  293.   #define _somInit somSelf->somInit
  294.   #define _somUninit somSelf->somUninit
  295.   #define _somDuplicateReference somSelf->somDuplicateReference
  296.   #define _somCompareReference somSelf->somCompareReference
  297.   #define _somRelease somSelf->somRelease
  298.   #define _somFree somSelf->somFree
  299.   #define _somCanDelete somSelf->somCanDelete
  300.   #define _somGetClass somSelf->somGetClass
  301.   #define _somGetClassName somSelf->somGetClassName
  302.   #define _somGetSize somSelf->somGetSize
  303.   #define _somIsA somSelf->somIsA
  304.   #define _somRespondsTo somSelf->somRespondsTo
  305.   #define _somIsInstanceOf somSelf->somIsInstanceOf
  306.   #define _somDispatch somSelf->somDispatch
  307.   #define _somClassDispatch somSelf->somClassDispatch
  308.   #define _somCastObj somSelf->somCastObj
  309.   #define _somResetObj somSelf->somResetObj
  310.   #define _somPrintSelf somSelf->somPrintSelf
  311.   #define _somDumpSelf somSelf->somDumpSelf
  312.   #define _somDumpSelfInt somSelf->somDumpSelfInt
  313.   #define _GetCurrentRun somSelf->GetCurrentRun
  314.   #define _FlushRun somSelf->FlushRun
  315.   #define _NewRun somSelf->NewRun
  316. #endif
  317.  
  318.  
  319. /*
  320.  * Introduced methods
  321.  */
  322.  
  323. /* New Method: GetCurrentRun */
  324. SOM_Scope corbastring  SOMLINK FW_OTextRunWriter__GetCurrentRun(FW_OTextRunWriter *somSelf, Environment *ev,
  325.         FW_ByteCount* length);
  326.  
  327. /* New Method: FlushRun */
  328. SOM_Scope void  SOMLINK FW_OTextRunWriter__FlushRun(FW_OTextRunWriter *somSelf, Environment *ev,
  329.         corbastring buffer,
  330.         FW_ByteCount bytesToFlush);
  331.  
  332. /* New Method: NewRun */
  333. SOM_Scope boolean  SOMLINK FW_OTextRunWriter__NewRun(FW_OTextRunWriter *somSelf, Environment *ev,
  334.         FW_Locale* locale);
  335.  
  336. /*
  337.  * -- Primary Implementation File Support
  338.  */
  339. #if (defined(FW_OTextRunWriter_Class_Source) || defined(SOM_Module_sltxtrun_Source))
  340.  
  341. /*
  342.  * -- The FW_OTextRunWriter ClassData Structure
  343.  */
  344.  
  345. #if PRAGMA_IMPORT_SUPPORTED
  346. #pragma export list FW_OTextRunWriterClassData
  347. #endif
  348.  
  349.  
  350. /*
  351.  * -- The FW_OTextRunWriter Class Ancestor Table
  352.  */
  353. static somClassDataStructure * SOMDLINK FW_OTextRunWriterClassAncestors [] = {
  354.     (somClassDataStructure*) & SOMObjectClassData,    /* parent */
  355. };
  356.  
  357.  
  358. static void FW_OTextRunWriterDLLD ( void ) { }
  359.  
  360.  
  361. /*
  362.  * -- The FW_OTextRunWriter Static Class Info Master Table
  363.  */
  364. static somStaticClassInfo FW_OTextRunWriterSCI = {
  365.       70,    /* layout version */
  366.     (somClassDataStructure*)  & FW_OTextRunWriterClassData,    /* main token table */
  367.       0,    /* no override procs table */
  368.       FW_OTextRunWriterClassAncestors,    /* ancestor table */
  369.       FW_OTextRunWriterDLLD,    /* DLLdesignator */
  370.       0,    /* no special procs */
  371.       0,    /* rtci slot */
  372.       0,    /* count slot */
  373.       0,    /* dynamic ancestry */
  374.       0,    /* free */
  375.       0,    /* free */
  376.       0,    /* free */
  377.       0,    /* free */
  378.  
  379. /*
  380.  * -- The FW_OTextRunWriter Counts Table
  381.  */
  382.     (somStaticClassCounts *)
  383.         "\x00\x00\x00\x01"    /* majorversion */
  384.         "\x00\x00\x00\x00"    /* minorversion */
  385.         "\x00\x00\x00\x01"    /* flags */
  386.             "\x00\x00"    /* type code alignment */
  387.             "\x00\x03"    /* classTokenCount */
  388.             "\x00\x01"    /* numDirectParents */
  389.             "\x00\x00"    /* numMetaClasses */
  390.             "\x00\x00"    /* numOverriddenAncestors */
  391.             "\x00\x00"    /* numMigratedMethods */
  392.             "\x00\x00"    /* numSelectedInherited */
  393.             "\x00\x00"    /* numUnused */
  394.             "\x00\x00"    /* free */
  395.             "\x00\x00"    /* free */
  396.             "\x00\x00"    /* free */
  397.             "\x00"    /* free */
  398.                 ,
  399.  
  400.     {
  401.       "FW_OTextRunWriter",    /* the class name */
  402.       0, /* no class instance data */
  403.  
  404. /*
  405.  * -- The FW_OTextRunWriter Parent Versions Table
  406.  */
  407.     (somParentVersions *)
  408.         "\x00\x00\x00\x46"    /* majorversion */
  409.         "\x00\x00\x00\x01"    /* minorversion */
  410.                 ,
  411.  
  412.  
  413. /*
  414.  * -- The FW_OTextRunWriter Token Slot Usage Table
  415.  */
  416.     (somSlotUsage *)
  417.         "\x00",
  418.  
  419.  
  420. /*
  421.  * -- The FW_OTextRunWriter Method Signature Info
  422.  */
  423.     (somSignatureInfo *)
  424.         "\x03\x0c"    /* GetCurrentRun */
  425.          "\x04\x07"    /* FlushRun */
  426.          "\x03\x00"    /* NewRun */
  427.              ,
  428.  
  429.  
  430. /*
  431.  * -- The FW_OTextRunWriter Class Method Names
  432.  */
  433.         "GetCurrentRun\0"
  434.         "FlushRun\0"
  435.         "NewRun\0"
  436.             ,
  437.  
  438.       0,    /* no override data table */
  439.       0,    /* no migrated methods table */
  440.       0,    /* no selected inherited */
  441.       0,    /* unused */
  442.  
  443.       0,    /* free */
  444.       0,    /* free */
  445.       0,    /* free */
  446.       0,    /* free */
  447.     },
  448. };
  449.  
  450. /*
  451.  * -- The FW_OTextRunWriter ClassData Structure
  452.  */
  453. struct FW_OTextRunWriterClassDataStructure SOMDLINK FW_OTextRunWriterClassData = {
  454.       0,            /* zero */
  455.     & FW_OTextRunWriterSCI,        /* SCI link */
  456.       0,            /* instanceDataToken */
  457.       0,            /* reserved */
  458.       0,            /* reserved */
  459.       0,            /* reserved */
  460.     (somMToken) FW_OTextRunWriter__GetCurrentRun,    /* GetCurrentRun:method */
  461.     (somMToken) FW_OTextRunWriter__FlushRun,    /* FlushRun:method */
  462.     (somMToken) FW_OTextRunWriter__NewRun,    /* NewRun:method */
  463. };
  464.  
  465.  
  466. /*
  467.  * Functions for attributes.
  468.  */
  469.  
  470. /*
  471.  * Macros for initializers/destructors
  472.  */
  473.  
  474. #endif /* Primary Implementation Support */
  475.  
  476. #endif       /* SOM_FW_OTextRunWriter_xih */
  477.  
  478. #ifndef SOM_FW_OMemoryRunReader_xih
  479. #define SOM_FW_OMemoryRunReader_xih
  480.  
  481. #include <somcls.xh>
  482. #include <somcm.xh>
  483.  
  484. /*
  485.  * Passthru lines: File: "C.xih", "before"
  486.  */
  487.  
  488.  
  489. #ifndef SOM_FW_OMemoryRunReader_xh
  490. #include <SLTxtRun.xh>
  491. #endif
  492.  
  493. /*
  494.  * Set the scope of methods functions
  495.  */
  496. #ifndef SOM_Scope
  497. #define SOM_Scope extern "C"
  498. #endif
  499.  
  500. #define FW_OMemoryRunReader_MaxNoMethods 1
  501.  
  502. /*
  503.  * -- Instance Data
  504.  */
  505.  
  506. /*
  507.  * -- Use best possible alignment for instance data slice.
  508.  */
  509. #if PRAGMA_ALIGN_SUPPORTED
  510. #  pragma options align=power
  511. #endif
  512. typedef struct FW_OMemoryRunReaderData {
  513.     char* fBuffer;
  514.     FW_ByteCount fLength;
  515. } FW_OMemoryRunReaderData;
  516. #if PRAGMA_ALIGN_SUPPORTED
  517. #  pragma options align=reset
  518. #endif
  519.  
  520. /*
  521.  * -- Getdata Macro
  522.  */
  523.  
  524. /*
  525.  * -- This emitter treats Data Tokens as Thunks by default.
  526.  * -- Use the sc modifier "nothunks" to override this default.
  527.  */
  528. SOMEXTERN typedef FW_OMemoryRunReaderData* (* SOMLINK somTD_FW_OMemoryRunReader_DataThunk)(void*);
  529. #define FW_OMemoryRunReaderGetData(somSelf) \
  530.    (((somTD_FW_OMemoryRunReader_DataThunk)(FW_OMemoryRunReaderClassData.instanceDataToken))(somSelf))
  531.  
  532. /*
  533.  * -- Instance Data Access Macros for use in Method Procedures
  534.  */
  535. #ifdef VARIABLE_MACROS
  536.   #define _fBuffer (somThis->fBuffer)
  537.   #define _fLength (somThis->fLength)
  538. #endif
  539.  
  540.  
  541. /*
  542.  * Trace/Debug macro
  543.  */
  544. #ifndef FW_OMemoryRunReaderMethodDebug
  545. #define FW_OMemoryRunReaderMethodDebug(c,m) SOMMethodDebug(c,m)
  546. #endif
  547.  
  548. /*
  549.  * -- Method Macros for use in Method Procedures
  550.  */
  551. #ifdef METHOD_MACROS
  552.   #define _GetCurrentRun somSelf->GetCurrentRun
  553.   #define _NextRun somSelf->NextRun
  554.   #define _PreviousRun somSelf->PreviousRun
  555.   #define _GetTotalLength somSelf->GetTotalLength
  556.   #define _somInit somSelf->somInit
  557.   #define _somUninit somSelf->somUninit
  558.   #define _somDuplicateReference somSelf->somDuplicateReference
  559.   #define _somCompareReference somSelf->somCompareReference
  560.   #define _somRelease somSelf->somRelease
  561.   #define _somFree somSelf->somFree
  562.   #define _somCanDelete somSelf->somCanDelete
  563.   #define _somGetClass somSelf->somGetClass
  564.   #define _somGetClassName somSelf->somGetClassName
  565.   #define _somGetSize somSelf->somGetSize
  566.   #define _somIsA somSelf->somIsA
  567.   #define _somRespondsTo somSelf->somRespondsTo
  568.   #define _somIsInstanceOf somSelf->somIsInstanceOf
  569.   #define _somDispatch somSelf->somDispatch
  570.   #define _somClassDispatch somSelf->somClassDispatch
  571.   #define _somCastObj somSelf->somCastObj
  572.   #define _somResetObj somSelf->somResetObj
  573.   #define _somPrintSelf somSelf->somPrintSelf
  574.   #define _somDumpSelf somSelf->somDumpSelf
  575.   #define _somDumpSelfInt somSelf->somDumpSelfInt
  576.   #define _Initialize somSelf->Initialize
  577.   #define _somInit somSelf->somInit
  578.   #define _somUninit somSelf->somUninit
  579.   #define _GetCurrentRun somSelf->GetCurrentRun
  580.   #define _NextRun somSelf->NextRun
  581.   #define _PreviousRun somSelf->PreviousRun
  582.   #define _GetTotalLength somSelf->GetTotalLength
  583. #endif
  584.  
  585.  
  586. /*
  587.  * Introduced methods
  588.  */
  589.  
  590. /* New Method: Initialize */
  591. SOM_Scope FW_OMemoryRunReader*  SOMLINK FW_OMemoryRunReader__Initialize(FW_OMemoryRunReader *somSelf, Environment *ev,
  592.         corbastring buffer,
  593.         FW_ByteCount length);
  594.  
  595. /*
  596.  * Overridden methods
  597.  */
  598.  
  599. /* Overridden method: somInit */
  600. SOM_Scope void  SOMLINK FW_OMemoryRunReader__somInit(FW_OMemoryRunReader *somSelf);
  601. SOMEXTERN typedef void   (* SOMLINK somTD_xih_FW_OMemoryRunReader_somInit)(FW_OMemoryRunReader *somSelf);
  602. inline void  SOMLINK FW_OMemoryRunReader_parent_FW_OTextRunReader_somInit(FW_OMemoryRunReader *somSelf)
  603. {
  604.   (void)         (somSelf);
  605. }
  606. #define FW_OMemoryRunReader_parents_somInit(arg0) \
  607.   (void) FW_OMemoryRunReader_parent_FW_OTextRunReader_somInit(arg0)
  608.  
  609. /* Overridden method: somUninit */
  610. SOM_Scope void  SOMLINK FW_OMemoryRunReader__somUninit(FW_OMemoryRunReader *somSelf);
  611. SOMEXTERN typedef void   (* SOMLINK somTD_xih_FW_OMemoryRunReader_somUninit)(FW_OMemoryRunReader *somSelf);
  612. inline void  SOMLINK FW_OMemoryRunReader_parent_FW_OTextRunReader_somUninit(FW_OMemoryRunReader *somSelf)
  613. {
  614.   (void)         (somSelf);
  615. }
  616. #define FW_OMemoryRunReader_parents_somUninit(arg0) \
  617.   (void) FW_OMemoryRunReader_parent_FW_OTextRunReader_somUninit(arg0)
  618.  
  619. /* Overridden method: GetCurrentRun */
  620. SOM_Scope corbastring  SOMLINK FW_OMemoryRunReader__GetCurrentRun(FW_OMemoryRunReader *somSelf, Environment *ev,
  621.         FW_ByteCount* length,
  622.         FW_Locale* locale);
  623. SOMEXTERN typedef corbastring   (* SOMLINK somTD_xih_FW_OMemoryRunReader_GetCurrentRun)(FW_OMemoryRunReader *somSelf, Environment *ev,
  624.         FW_ByteCount* length,
  625.         FW_Locale* locale);
  626. inline corbastring  SOMLINK FW_OMemoryRunReader_parent_FW_OTextRunReader_GetCurrentRun(FW_OMemoryRunReader *somSelf, Environment *ev,
  627.     FW_ByteCount* length,
  628.     FW_Locale* locale)
  629. {
  630. #ifdef SOMCHKEXCEPT
  631.   corbastring __somRetVal =   ((somTD_xih_FW_OMemoryRunReader_GetCurrentRun)
  632.     somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.GetCurrentRun))
  633.         (somSelf,ev,length,locale);
  634.   SOMCHKEXCEPT;
  635.   return __somRetVal;
  636. #else
  637.   return  ((somTD_xih_FW_OMemoryRunReader_GetCurrentRun)
  638.     somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.GetCurrentRun))
  639.         (somSelf,ev,length,locale);
  640. #endif
  641. }
  642. #define FW_OMemoryRunReader_parents_GetCurrentRun(arg0,arg1,arg2,arg3) \
  643.   (void) FW_OMemoryRunReader_parent_FW_OTextRunReader_GetCurrentRun(arg0,arg1,arg2,arg3)
  644.  
  645. /* Overridden method: NextRun */
  646. SOM_Scope boolean  SOMLINK FW_OMemoryRunReader__NextRun(FW_OMemoryRunReader *somSelf, Environment *ev);
  647. SOMEXTERN typedef boolean   (* SOMLINK somTD_xih_FW_OMemoryRunReader_NextRun)(FW_OMemoryRunReader *somSelf, Environment *ev);
  648. inline boolean  SOMLINK FW_OMemoryRunReader_parent_FW_OTextRunReader_NextRun(FW_OMemoryRunReader *somSelf, Environment *ev)
  649. {
  650. #ifdef SOMCHKEXCEPT
  651.   boolean __somRetVal =   ((somTD_xih_FW_OMemoryRunReader_NextRun)
  652.     somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.NextRun))
  653.         (somSelf,ev);
  654.   SOMCHKEXCEPT;
  655.   return __somRetVal;
  656. #else
  657.   return  ((somTD_xih_FW_OMemoryRunReader_NextRun)
  658.     somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.NextRun))
  659.         (somSelf,ev);
  660. #endif
  661. }
  662. #define FW_OMemoryRunReader_parents_NextRun(arg0,arg1) \
  663.   (void) FW_OMemoryRunReader_parent_FW_OTextRunReader_NextRun(arg0,arg1)
  664.  
  665. /* Overridden method: PreviousRun */
  666. SOM_Scope boolean  SOMLINK FW_OMemoryRunReader__PreviousRun(FW_OMemoryRunReader *somSelf, Environment *ev);
  667. SOMEXTERN typedef boolean   (* SOMLINK somTD_xih_FW_OMemoryRunReader_PreviousRun)(FW_OMemoryRunReader *somSelf, Environment *ev);
  668. inline boolean  SOMLINK FW_OMemoryRunReader_parent_FW_OTextRunReader_PreviousRun(FW_OMemoryRunReader *somSelf, Environment *ev)
  669. {
  670. #ifdef SOMCHKEXCEPT
  671.   boolean __somRetVal =   ((somTD_xih_FW_OMemoryRunReader_PreviousRun)
  672.     somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.PreviousRun))
  673.         (somSelf,ev);
  674.   SOMCHKEXCEPT;
  675.   return __somRetVal;
  676. #else
  677.   return  ((somTD_xih_FW_OMemoryRunReader_PreviousRun)
  678.     somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.PreviousRun))
  679.         (somSelf,ev);
  680. #endif
  681. }
  682. #define FW_OMemoryRunReader_parents_PreviousRun(arg0,arg1) \
  683.   (void) FW_OMemoryRunReader_parent_FW_OTextRunReader_PreviousRun(arg0,arg1)
  684.  
  685. /* Overridden method: GetTotalLength */
  686. SOM_Scope FW_ByteCount  SOMLINK FW_OMemoryRunReader__GetTotalLength(FW_OMemoryRunReader *somSelf, Environment *ev);
  687. SOMEXTERN typedef FW_ByteCount   (* SOMLINK somTD_xih_FW_OMemoryRunReader_GetTotalLength)(FW_OMemoryRunReader *somSelf, Environment *ev);
  688. inline FW_ByteCount  SOMLINK FW_OMemoryRunReader_parent_FW_OTextRunReader_GetTotalLength(FW_OMemoryRunReader *somSelf, Environment *ev)
  689. {
  690. #ifdef SOMCHKEXCEPT
  691.   FW_ByteCount __somRetVal =   ((somTD_xih_FW_OMemoryRunReader_GetTotalLength)
  692.     somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.GetTotalLength))
  693.         (somSelf,ev);
  694.   SOMCHKEXCEPT;
  695.   return __somRetVal;
  696. #else
  697.   return  ((somTD_xih_FW_OMemoryRunReader_GetTotalLength)
  698.     somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.GetTotalLength))
  699.         (somSelf,ev);
  700. #endif
  701. }
  702. #define FW_OMemoryRunReader_parents_GetTotalLength(arg0,arg1) \
  703.   (void) FW_OMemoryRunReader_parent_FW_OTextRunReader_GetTotalLength(arg0,arg1)
  704.  
  705. /*
  706.  * -- Primary Implementation File Support
  707.  */
  708. #if (defined(FW_OMemoryRunReader_Class_Source) || defined(SOM_Module_sltxtrun_Source))
  709.  
  710. /*
  711.  * -- The FW_OMemoryRunReader ClassData Structure
  712.  */
  713.  
  714. #if PRAGMA_IMPORT_SUPPORTED
  715. #pragma export list FW_OMemoryRunReaderClassData
  716. #endif
  717.  
  718.  
  719. /*
  720.  * -- The FW_OMemoryRunReader Class Ancestor Table
  721.  */
  722. static somClassDataStructure * SOMDLINK FW_OMemoryRunReaderClassAncestors [] = {
  723.     (somClassDataStructure*) & FW_OTextRunReaderClassData,    /* parent */
  724.     (somClassDataStructure*) & SOMObjectClassData,    /* ancestor */
  725. };
  726.  
  727.  
  728. /*
  729.  * -- The FW_OMemoryRunReader Override ProcPtr Implementations Table
  730.  */
  731. static somMethodPtr FW_OMemoryRunReaderOverrideProcs [] = {
  732.     (somMethodPtr) FW_OMemoryRunReader__GetCurrentRun,    /* override class FW_OTextRunReader */
  733.     (somMethodPtr) FW_OMemoryRunReader__NextRun,    /* override class FW_OTextRunReader */
  734.     (somMethodPtr) FW_OMemoryRunReader__PreviousRun,    /* override class FW_OTextRunReader */
  735.     (somMethodPtr) FW_OMemoryRunReader__GetTotalLength,    /* override class FW_OTextRunReader */
  736.     (somMethodPtr) FW_OMemoryRunReader__somInit,    /* override class SOMObject */
  737.     (somMethodPtr) FW_OMemoryRunReader__somUninit,    /* override class SOMObject */
  738. };
  739.  
  740.  
  741. static void FW_OMemoryRunReaderDLLD ( void ) { }
  742.  
  743.  
  744. /*
  745.  * -- The FW_OMemoryRunReader Static Class Info Master Table
  746.  */
  747. static somStaticClassInfo FW_OMemoryRunReaderSCI = {
  748.       70,    /* layout version */
  749.     (somClassDataStructure*)  & FW_OMemoryRunReaderClassData,    /* main token table */
  750.       FW_OMemoryRunReaderOverrideProcs,    /* override proc implemenations table */
  751.       FW_OMemoryRunReaderClassAncestors,    /* ancestor table */
  752.       FW_OMemoryRunReaderDLLD,    /* DLLdesignator */
  753.       0,    /* no special procs */
  754.       0,    /* rtci slot */
  755.       0,    /* count slot */
  756.       0,    /* dynamic ancestry */
  757.       0,    /* free */
  758.       0,    /* free */
  759.       0,    /* free */
  760.       0,    /* free */
  761.  
  762. /*
  763.  * -- The FW_OMemoryRunReader Counts Table
  764.  */
  765.     (somStaticClassCounts *)
  766.         "\x00\x00\x00\x01"    /* majorversion */
  767.         "\x00\x00\x00\x00"    /* minorversion */
  768.         "\x00\x00\x00\x01"    /* flags */
  769.             "\x00\x02"    /* type code alignment */
  770.             "\x00\x07"    /* classTokenCount */
  771.             "\x00\x01"    /* numDirectParents */
  772.             "\x00\x00"    /* numMetaClasses */
  773.             "\x00\x02"    /* numOverriddenAncestors */
  774.             "\x00\x00"    /* numMigratedMethods */
  775.             "\x00\x00"    /* numSelectedInherited */
  776.             "\x00\x00"    /* numUnused */
  777.             "\x00\x00"    /* free */
  778.             "\x00\x00"    /* free */
  779.             "\x00\x00"    /* free */
  780.             "\x00"    /* free */
  781.                 ,
  782.  
  783.     {
  784.       "FW_OMemoryRunReader",    /* the class name */
  785.       sizeof (FW_OMemoryRunReaderData), /* class instance data size */
  786.  
  787. /*
  788.  * -- The FW_OMemoryRunReader Parent Versions Table
  789.  */
  790.     (somParentVersions *)
  791.         "\x00\x00\x00\x01"    /* majorversion */
  792.         "\x00\x00\x00\x00"    /* minorversion */
  793.                 ,
  794.  
  795.  
  796. /*
  797.  * -- The FW_OMemoryRunReader Token Slot Usage Table
  798.  */
  799.     (somSlotUsage *)
  800.         "\x33\x33\x33",
  801.  
  802.  
  803. /*
  804.  * -- The FW_OMemoryRunReader Method Signature Info
  805.  */
  806.     (somSignatureInfo *)
  807.         "\x04\x0c"    /* Initialize */
  808.              ,
  809.  
  810.  
  811. /*
  812.  * -- The FW_OMemoryRunReader Class Method Names
  813.  */
  814.         "somInit\0"
  815.         "somUninit\0"
  816.         "GetCurrentRun\0"
  817.         "NextRun\0"
  818.         "PreviousRun\0"
  819.         "GetTotalLength\0"
  820.         "Initialize\0"
  821.             ,
  822.  
  823.  
  824. /*
  825.  * -- The FW_OMemoryRunReader Override Slots Table
  826.  */
  827.     (somOverrideData *)
  828.         "\x00\x00\x00\x04"    /* parent FW_OTextRunReader has 4 overrides */
  829.             "\x00\x00"    /* GetCurrentRun */
  830.             "\x00\x01"    /* NextRun */
  831.             "\x00\x02"    /* PreviousRun */
  832.             "\x00\x03"    /* GetTotalLength */
  833.         "\x00\x01\x00\x02"    /* parent SOMObject has 2 overrides */
  834.             "\x00\x00"    /* somInit */
  835.             "\x00\x01"    /* somUninit */
  836.                 ,
  837.  
  838.       0,    /* no migrated methods table */
  839.       0,    /* no selected inherited */
  840.       0,    /* unused */
  841.  
  842.       0,    /* free */
  843.       0,    /* free */
  844.       0,    /* free */
  845.       0,    /* free */
  846.     },
  847. };
  848.  
  849. /*
  850.  * -- The FW_OMemoryRunReader ClassData Structure
  851.  */
  852. struct FW_OMemoryRunReaderClassDataStructure SOMDLINK FW_OMemoryRunReaderClassData = {
  853.       0,            /* zero */
  854.     & FW_OMemoryRunReaderSCI,        /* SCI link */
  855.       0,            /* instanceDataToken */
  856.       0,            /* reserved */
  857.       0,            /* reserved */
  858.       0,            /* reserved */
  859.     (somMToken) 0,        /* somInit:empty */
  860.     (somMToken) 0,        /* somUninit:empty */
  861.     (somMToken) 0,        /* GetCurrentRun:empty */
  862.     (somMToken) 0,        /* NextRun:empty */
  863.     (somMToken) 0,        /* PreviousRun:empty */
  864.     (somMToken) 0,        /* GetTotalLength:empty */
  865.     (somMToken) FW_OMemoryRunReader__Initialize,    /* Initialize:method */
  866. };
  867.  
  868.  
  869. /*
  870.  * Functions for attributes.
  871.  */
  872.  
  873. /*
  874.  * Macros for initializers/destructors
  875.  */
  876.  
  877. #endif /* Primary Implementation Support */
  878.  
  879. #endif       /* SOM_FW_OMemoryRunReader_xih */
  880.  
  881. #ifndef SOM_FW_OMemoryRunWriter_xih
  882. #define SOM_FW_OMemoryRunWriter_xih
  883.  
  884. #include <somcls.xh>
  885. #include <somcm.xh>
  886.  
  887. /*
  888.  * Passthru lines: File: "C.xih", "before"
  889.  */
  890.  
  891.  
  892. #ifndef SOM_FW_OMemoryRunWriter_xh
  893. #include <SLTxtRun.xh>
  894. #endif
  895.  
  896. /*
  897.  * Set the scope of methods functions
  898.  */
  899. #ifndef SOM_Scope
  900. #define SOM_Scope extern "C"
  901. #endif
  902.  
  903. #define FW_OMemoryRunWriter_MaxNoMethods 1
  904.  
  905. /*
  906.  * -- Instance Data
  907.  */
  908.  
  909. /*
  910.  * -- Use best possible alignment for instance data slice.
  911.  */
  912. #if PRAGMA_ALIGN_SUPPORTED
  913. #  pragma options align=power
  914. #endif
  915. typedef struct FW_OMemoryRunWriterData {
  916.     char* fBuffer;
  917.     FW_ByteCount fCapacity;
  918. } FW_OMemoryRunWriterData;
  919. #if PRAGMA_ALIGN_SUPPORTED
  920. #  pragma options align=reset
  921. #endif
  922.  
  923. /*
  924.  * -- Getdata Macro
  925.  */
  926.  
  927. /*
  928.  * -- This emitter treats Data Tokens as Thunks by default.
  929.  * -- Use the sc modifier "nothunks" to override this default.
  930.  */
  931. SOMEXTERN typedef FW_OMemoryRunWriterData* (* SOMLINK somTD_FW_OMemoryRunWriter_DataThunk)(void*);
  932. #define FW_OMemoryRunWriterGetData(somSelf) \
  933.    (((somTD_FW_OMemoryRunWriter_DataThunk)(FW_OMemoryRunWriterClassData.instanceDataToken))(somSelf))
  934.  
  935. /*
  936.  * -- Instance Data Access Macros for use in Method Procedures
  937.  */
  938. #ifdef VARIABLE_MACROS
  939.   #define _fBuffer (somThis->fBuffer)
  940.   #define _fCapacity (somThis->fCapacity)
  941. #endif
  942.  
  943.  
  944. /*
  945.  * Trace/Debug macro
  946.  */
  947. #ifndef FW_OMemoryRunWriterMethodDebug
  948. #define FW_OMemoryRunWriterMethodDebug(c,m) SOMMethodDebug(c,m)
  949. #endif
  950.  
  951. /*
  952.  * -- Method Macros for use in Method Procedures
  953.  */
  954. #ifdef METHOD_MACROS
  955.   #define _GetCurrentRun somSelf->GetCurrentRun
  956.   #define _FlushRun somSelf->FlushRun
  957.   #define _NewRun somSelf->NewRun
  958.   #define _somInit somSelf->somInit
  959.   #define _somUninit somSelf->somUninit
  960.   #define _somDuplicateReference somSelf->somDuplicateReference
  961.   #define _somCompareReference somSelf->somCompareReference
  962.   #define _somRelease somSelf->somRelease
  963.   #define _somFree somSelf->somFree
  964.   #define _somCanDelete somSelf->somCanDelete
  965.   #define _somGetClass somSelf->somGetClass
  966.   #define _somGetClassName somSelf->somGetClassName
  967.   #define _somGetSize somSelf->somGetSize
  968.   #define _somIsA somSelf->somIsA
  969.   #define _somRespondsTo somSelf->somRespondsTo
  970.   #define _somIsInstanceOf somSelf->somIsInstanceOf
  971.   #define _somDispatch somSelf->somDispatch
  972.   #define _somClassDispatch somSelf->somClassDispatch
  973.   #define _somCastObj somSelf->somCastObj
  974.   #define _somResetObj somSelf->somResetObj
  975.   #define _somPrintSelf somSelf->somPrintSelf
  976.   #define _somDumpSelf somSelf->somDumpSelf
  977.   #define _somDumpSelfInt somSelf->somDumpSelfInt
  978.   #define _Initialize somSelf->Initialize
  979.   #define _somInit somSelf->somInit
  980.   #define _somUninit somSelf->somUninit
  981.   #define _GetCurrentRun somSelf->GetCurrentRun
  982.   #define _FlushRun somSelf->FlushRun
  983.   #define _NewRun somSelf->NewRun
  984. #endif
  985.  
  986.  
  987. /*
  988.  * Introduced methods
  989.  */
  990.  
  991. /* New Method: Initialize */
  992. SOM_Scope FW_OMemoryRunWriter*  SOMLINK FW_OMemoryRunWriter__Initialize(FW_OMemoryRunWriter *somSelf, Environment *ev,
  993.         corbastring buffer,
  994.         FW_ByteCount capacity);
  995.  
  996. /*
  997.  * Overridden methods
  998.  */
  999.  
  1000. /* Overridden method: somInit */
  1001. SOM_Scope void  SOMLINK FW_OMemoryRunWriter__somInit(FW_OMemoryRunWriter *somSelf);
  1002. SOMEXTERN typedef void   (* SOMLINK somTD_xih_FW_OMemoryRunWriter_somInit)(FW_OMemoryRunWriter *somSelf);
  1003. inline void  SOMLINK FW_OMemoryRunWriter_parent_FW_OTextRunWriter_somInit(FW_OMemoryRunWriter *somSelf)
  1004. {
  1005.   (void)         (somSelf);
  1006. }
  1007. #define FW_OMemoryRunWriter_parents_somInit(arg0) \
  1008.   (void) FW_OMemoryRunWriter_parent_FW_OTextRunWriter_somInit(arg0)
  1009.  
  1010. /* Overridden method: somUninit */
  1011. SOM_Scope void  SOMLINK FW_OMemoryRunWriter__somUninit(FW_OMemoryRunWriter *somSelf);
  1012. SOMEXTERN typedef void   (* SOMLINK somTD_xih_FW_OMemoryRunWriter_somUninit)(FW_OMemoryRunWriter *somSelf);
  1013. inline void  SOMLINK FW_OMemoryRunWriter_parent_FW_OTextRunWriter_somUninit(FW_OMemoryRunWriter *somSelf)
  1014. {
  1015.   (void)         (somSelf);
  1016. }
  1017. #define FW_OMemoryRunWriter_parents_somUninit(arg0) \
  1018.   (void) FW_OMemoryRunWriter_parent_FW_OTextRunWriter_somUninit(arg0)
  1019.  
  1020. /* Overridden method: GetCurrentRun */
  1021. SOM_Scope corbastring  SOMLINK FW_OMemoryRunWriter__GetCurrentRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
  1022.         FW_ByteCount* length);
  1023. SOMEXTERN typedef corbastring   (* SOMLINK somTD_xih_FW_OMemoryRunWriter_GetCurrentRun)(FW_OMemoryRunWriter *somSelf, Environment *ev,
  1024.         FW_ByteCount* length);
  1025. inline corbastring  SOMLINK FW_OMemoryRunWriter_parent_FW_OTextRunWriter_GetCurrentRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
  1026.     FW_ByteCount* length)
  1027. {
  1028. #ifdef SOMCHKEXCEPT
  1029.   corbastring __somRetVal =   ((somTD_xih_FW_OMemoryRunWriter_GetCurrentRun)
  1030.     somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunWriterClassData, 1, FW_OTextRunWriterClassData.GetCurrentRun))
  1031.         (somSelf,ev,length);
  1032.   SOMCHKEXCEPT;
  1033.   return __somRetVal;
  1034. #else
  1035.   return  ((somTD_xih_FW_OMemoryRunWriter_GetCurrentRun)
  1036.     somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunWriterClassData, 1, FW_OTextRunWriterClassData.GetCurrentRun))
  1037.         (somSelf,ev,length);
  1038. #endif
  1039. }
  1040. #define FW_OMemoryRunWriter_parents_GetCurrentRun(arg0,arg1,arg2) \
  1041.   (void) FW_OMemoryRunWriter_parent_FW_OTextRunWriter_GetCurrentRun(arg0,arg1,arg2)
  1042.  
  1043. /* Overridden method: FlushRun */
  1044. SOM_Scope void  SOMLINK FW_OMemoryRunWriter__FlushRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
  1045.         corbastring buffer,
  1046.         FW_ByteCount bytesToFlush);
  1047. SOMEXTERN typedef void   (* SOMLINK somTD_xih_FW_OMemoryRunWriter_FlushRun)(FW_OMemoryRunWriter *somSelf, Environment *ev,
  1048.         corbastring buffer,
  1049.         FW_ByteCount bytesToFlush);
  1050. inline void  SOMLINK FW_OMemoryRunWriter_parent_FW_OTextRunWriter_FlushRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
  1051.     corbastring buffer,
  1052.     FW_ByteCount bytesToFlush)
  1053. {
  1054.   ((somTD_xih_FW_OMemoryRunWriter_FlushRun)
  1055.     somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunWriterClassData, 1, FW_OTextRunWriterClassData.FlushRun))
  1056.         (somSelf,ev,buffer,bytesToFlush);
  1057. #ifdef SOMCHKEXCEPT
  1058.   SOMCHKEXCEPT;
  1059. #endif
  1060. }
  1061. #define FW_OMemoryRunWriter_parents_FlushRun(arg0,arg1,arg2,arg3) \
  1062.   (void) FW_OMemoryRunWriter_parent_FW_OTextRunWriter_FlushRun(arg0,arg1,arg2,arg3)
  1063.  
  1064. /* Overridden method: NewRun */
  1065. SOM_Scope boolean  SOMLINK FW_OMemoryRunWriter__NewRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
  1066.         FW_Locale* locale);
  1067. SOMEXTERN typedef boolean   (* SOMLINK somTD_xih_FW_OMemoryRunWriter_NewRun)(FW_OMemoryRunWriter *somSelf, Environment *ev,
  1068.         FW_Locale* locale);
  1069. inline boolean  SOMLINK FW_OMemoryRunWriter_parent_FW_OTextRunWriter_NewRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
  1070.     FW_Locale* locale)
  1071. {
  1072. #ifdef SOMCHKEXCEPT
  1073.   boolean __somRetVal =   ((somTD_xih_FW_OMemoryRunWriter_NewRun)
  1074.     somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunWriterClassData, 1, FW_OTextRunWriterClassData.NewRun))
  1075.         (somSelf,ev,locale);
  1076.   SOMCHKEXCEPT;
  1077.   return __somRetVal;
  1078. #else
  1079.   return  ((somTD_xih_FW_OMemoryRunWriter_NewRun)
  1080.     somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunWriterClassData, 1, FW_OTextRunWriterClassData.NewRun))
  1081.         (somSelf,ev,locale);
  1082. #endif
  1083. }
  1084. #define FW_OMemoryRunWriter_parents_NewRun(arg0,arg1,arg2) \
  1085.   (void) FW_OMemoryRunWriter_parent_FW_OTextRunWriter_NewRun(arg0,arg1,arg2)
  1086.  
  1087. /*
  1088.  * -- Primary Implementation File Support
  1089.  */
  1090. #if (defined(FW_OMemoryRunWriter_Class_Source) || defined(SOM_Module_sltxtrun_Source))
  1091.  
  1092. /*
  1093.  * -- The FW_OMemoryRunWriter ClassData Structure
  1094.  */
  1095.  
  1096. #if PRAGMA_IMPORT_SUPPORTED
  1097. #pragma export list FW_OMemoryRunWriterClassData
  1098. #endif
  1099.  
  1100.  
  1101. /*
  1102.  * -- The FW_OMemoryRunWriter Class Ancestor Table
  1103.  */
  1104. static somClassDataStructure * SOMDLINK FW_OMemoryRunWriterClassAncestors [] = {
  1105.     (somClassDataStructure*) & FW_OTextRunWriterClassData,    /* parent */
  1106.     (somClassDataStructure*) & SOMObjectClassData,    /* ancestor */
  1107. };
  1108.  
  1109.  
  1110. /*
  1111.  * -- The FW_OMemoryRunWriter Override ProcPtr Implementations Table
  1112.  */
  1113. static somMethodPtr FW_OMemoryRunWriterOverrideProcs [] = {
  1114.     (somMethodPtr) FW_OMemoryRunWriter__GetCurrentRun,    /* override class FW_OTextRunWriter */
  1115.     (somMethodPtr) FW_OMemoryRunWriter__FlushRun,    /* override class FW_OTextRunWriter */
  1116.     (somMethodPtr) FW_OMemoryRunWriter__NewRun,    /* override class FW_OTextRunWriter */
  1117.     (somMethodPtr) FW_OMemoryRunWriter__somInit,    /* override class SOMObject */
  1118.     (somMethodPtr) FW_OMemoryRunWriter__somUninit,    /* override class SOMObject */
  1119. };
  1120.  
  1121.  
  1122. static void FW_OMemoryRunWriterDLLD ( void ) { }
  1123.  
  1124.  
  1125. /*
  1126.  * -- The FW_OMemoryRunWriter Static Class Info Master Table
  1127.  */
  1128. static somStaticClassInfo FW_OMemoryRunWriterSCI = {
  1129.       70,    /* layout version */
  1130.     (somClassDataStructure*)  & FW_OMemoryRunWriterClassData,    /* main token table */
  1131.       FW_OMemoryRunWriterOverrideProcs,    /* override proc implemenations table */
  1132.       FW_OMemoryRunWriterClassAncestors,    /* ancestor table */
  1133.       FW_OMemoryRunWriterDLLD,    /* DLLdesignator */
  1134.       0,    /* no special procs */
  1135.       0,    /* rtci slot */
  1136.       0,    /* count slot */
  1137.       0,    /* dynamic ancestry */
  1138.       0,    /* free */
  1139.       0,    /* free */
  1140.       0,    /* free */
  1141.       0,    /* free */
  1142.  
  1143. /*
  1144.  * -- The FW_OMemoryRunWriter Counts Table
  1145.  */
  1146.     (somStaticClassCounts *)
  1147.         "\x00\x00\x00\x01"    /* majorversion */
  1148.         "\x00\x00\x00\x00"    /* minorversion */
  1149.         "\x00\x00\x00\x01"    /* flags */
  1150.             "\x00\x02"    /* type code alignment */
  1151.             "\x00\x06"    /* classTokenCount */
  1152.             "\x00\x01"    /* numDirectParents */
  1153.             "\x00\x00"    /* numMetaClasses */
  1154.             "\x00\x02"    /* numOverriddenAncestors */
  1155.             "\x00\x00"    /* numMigratedMethods */
  1156.             "\x00\x00"    /* numSelectedInherited */
  1157.             "\x00\x00"    /* numUnused */
  1158.             "\x00\x00"    /* free */
  1159.             "\x00\x00"    /* free */
  1160.             "\x00\x00"    /* free */
  1161.             "\x00"    /* free */
  1162.                 ,
  1163.  
  1164.     {
  1165.       "FW_OMemoryRunWriter",    /* the class name */
  1166.       sizeof (FW_OMemoryRunWriterData), /* class instance data size */
  1167.  
  1168. /*
  1169.  * -- The FW_OMemoryRunWriter Parent Versions Table
  1170.  */
  1171.     (somParentVersions *)
  1172.         "\x00\x00\x00\x01"    /* majorversion */
  1173.         "\x00\x00\x00\x00"    /* minorversion */
  1174.                 ,
  1175.  
  1176.  
  1177. /*
  1178.  * -- The FW_OMemoryRunWriter Token Slot Usage Table
  1179.  */
  1180.     (somSlotUsage *)
  1181.         "\x33\x33\x30",
  1182.  
  1183.  
  1184. /*
  1185.  * -- The FW_OMemoryRunWriter Method Signature Info
  1186.  */
  1187.     (somSignatureInfo *)
  1188.         "\x04\x0c"    /* Initialize */
  1189.              ,
  1190.  
  1191.  
  1192. /*
  1193.  * -- The FW_OMemoryRunWriter Class Method Names
  1194.  */
  1195.         "somInit\0"
  1196.         "somUninit\0"
  1197.         "GetCurrentRun\0"
  1198.         "FlushRun\0"
  1199.         "NewRun\0"
  1200.         "Initialize\0"
  1201.             ,
  1202.  
  1203.  
  1204. /*
  1205.  * -- The FW_OMemoryRunWriter Override Slots Table
  1206.  */
  1207.     (somOverrideData *)
  1208.         "\x00\x00\x00\x03"    /* parent FW_OTextRunWriter has 3 overrides */
  1209.             "\x00\x00"    /* GetCurrentRun */
  1210.             "\x00\x01"    /* FlushRun */
  1211.             "\x00\x02"    /* NewRun */
  1212.         "\x00\x01\x00\x02"    /* parent SOMObject has 2 overrides */
  1213.             "\x00\x00"    /* somInit */
  1214.             "\x00\x01"    /* somUninit */
  1215.                 ,
  1216.  
  1217.       0,    /* no migrated methods table */
  1218.       0,    /* no selected inherited */
  1219.       0,    /* unused */
  1220.  
  1221.       0,    /* free */
  1222.       0,    /* free */
  1223.       0,    /* free */
  1224.       0,    /* free */
  1225.     },
  1226. };
  1227.  
  1228. /*
  1229.  * -- The FW_OMemoryRunWriter ClassData Structure
  1230.  */
  1231. struct FW_OMemoryRunWriterClassDataStructure SOMDLINK FW_OMemoryRunWriterClassData = {
  1232.       0,            /* zero */
  1233.     & FW_OMemoryRunWriterSCI,        /* SCI link */
  1234.       0,            /* instanceDataToken */
  1235.       0,            /* reserved */
  1236.       0,            /* reserved */
  1237.       0,            /* reserved */
  1238.     (somMToken) 0,        /* somInit:empty */
  1239.     (somMToken) 0,        /* somUninit:empty */
  1240.     (somMToken) 0,        /* GetCurrentRun:empty */
  1241.     (somMToken) 0,        /* FlushRun:empty */
  1242.     (somMToken) 0,        /* NewRun:empty */
  1243.     (somMToken) FW_OMemoryRunWriter__Initialize,    /* Initialize:method */
  1244. };
  1245.  
  1246.  
  1247. /*
  1248.  * Functions for attributes.
  1249.  */
  1250.  
  1251. /*
  1252.  * Macros for initializers/destructors
  1253.  */
  1254.  
  1255. #endif /* Primary Implementation Support */
  1256.  
  1257. #endif       /* SOM_FW_OMemoryRunWriter_xih */
  1258.